<template>
  <!-- 其他推荐 -->
  <div class="other-recom">
    <div class="other-title flex justify-between">
      <span>热门攻略</span>
      <span class="text-gray-500 mr-10">更多<i class="iconfont iconjinrujiantou text-12"></i></span>
    </div>
    <div class="other-item flex flex-col border-b" v-for="(item, index) in list" :key="index">
      <div class="item-img">
        <img :src="item.cover" alt="" />
      </div>
      <div class="item-content">
        <div class="text-14">{{ item.name }}</div>
        <div class="text-12 text-gray-400 w-full line-2">{{ item.desc }}</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'otherRecom',
  props: {
    list: Array,
  },
}
</script>

<style lang="scss" scoped>
.other-recom {
  .other-title {
    line-height: 0.4rem;
    background: #eee;
    text-indent: 0.1rem;
  }
  .other-item {
    margin: 0.1rem 0.1rem 0 0.1rem;
    .item-img {
      img {
        width: 100%;
        height: 1rem;
        border-radius: 0.05rem;
      }
    }
    .item-content {
      width: 100%;
      margin-top: 0.1rem;
      margin-bottom: 0.1rem;
      .title {
        font-size: 0.14rem;
      }
      .text {
        font-size: 0.12rem;
      }
    }
  }
}
</style>
